home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15314 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.4 KB

  1. Path: news.halcyon.com!usenet
  2. From: Glen Parker <glenebob@halcyon.com>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Stopping a program with a password or ESC???
  5. Date: Thu, 04 Apr 1996 11:04:34 -0800
  6. Organization: Computer Systems Contracting
  7. Message-ID: <31641D42.7369@halcyon.com>
  8. References: <4jprhm$uca@mule1.mindspring.com>
  9. NNTP-Posting-Host: blv-pm2-ip29.halcyon.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (WinNT; I)
  14.  
  15. > I've written a program that controls a linear motion table and several
  16. > input and output devices.  However, there's no way of exiting it
  17. > without CTL-ALT-DEL ing out of it.  How can I make it so that when I
  18. > press ESC at any point in the program it will exit??  This would be
  19. > great for starters.  However, in the future I might want to make it so
  20. > that a specific sequence of key presses exits the program.  But the
  21. > catch is that I wouldn't want the program to halt as each key was
  22. > pressed.  For instance, a person would have to type "end" all at once
  23. > without significant pauses for the program to exit, otherwise it would
  24. > keep running like normal.
  25. > Any ideas??  Primarily on my first question, once I get the ESC
  26. > figured out I'll worry about the 'password' bit.
  27.  
  28.  
  29. So...  What OS are you running under?  What kind of 
  30. user interface are you using?  Without this info, 
  31. what can a guy do?
  32.  
  33. Glen
  34.  
  35.  
  36.